package com.kfm.base.function;

public class Demo08 {

    public static void main(String[] args) {

        int n = 10;

//        n = change(n); // 重新赋值
        int[] a = new int[]{n};
        change(a);

        System.out.println(n);
        System.out.println(a[0]);
    }

//    public static int change(int n){
//        return ++ n;
//    }

    public static void change(int... a){
        a[0] = 5;
    }
}
